package base;

/**
 * @Description: 泛型
 * @Author: hmm
 * @CreateDate: 2019/8/5$ 20:50$
 *
 * @UpdateUser: hmm
 * @UpdateDate: 2019/8/5$ 20:50$
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Genericity<E extends User> {
    private E e;

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }

    public static void main(String[] args) {
        Genericity<User> genericity = new Genericity<>();
        User user = new User("1","1");
        genericity.setE(user);
        System.out.println(genericity.getE());
    }
}
